<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="./sweetalert.css" rel="stylesheet">
    <script src="./sweetalert-dev.js" type="text/javascript"></script>


</head>
<body>
<script>

  var a=  swal({
        title: '提示',
        text: "确认删除吗？",
        type: 'warning',
        showCancelButton: true,
        confirmButtonText: '确认',
        cancelButtonText: '取消',
        showLoaderOnConfirm: true, //加载按钮是否可见

     },function (isConfirm){
        if(isConfirm){
            console.log(111)


        }else{
            console.log('取消')


        }
    });







</script>
</body>
</html>